/**
 * Created by zhangsong on 2019/9/22.
 */
import applicationContractor from './application/contractor';
import applicationStaff from './application/staff';
import applicationVehicle from './application/vehicle';
import applicationCommon from './application/common';

const system = {
  // 系统名称
  name: 'P3910 - Pass Office Application',
};

const httpCode = {
  401: '權限不足',
  403: '登錄失效,請重新登錄',
  404: '頁面不存在',
  502: '系統正在維護,請稍後再試',
};

const button = {
  detail: 'View details',
  remove: 'Delete',
  update: 'Update',
  rollback: 'Go Back',
  save: 'Save',
  cancel: 'Cancel',
  close: 'Close',
  clear: 'Clear',
  preview: 'Preview PDF',
  reset: 'Reset',
  search: 'Search',
  sure: 'Ok',
  operator: 'operator',
  printing: 'Printing',
  prevPage: 'prev',
  nextPage: 'next',
  disapproval: 'disapproval',
  approval: 'approval',
  download: 'download',
  newdownload: 'Export data',
};

const baseInfo = {
  saveSuccess: 'Save Success',
  errorTitle: 'Error',
  askDeleteRecord: 'Are you sure you want to delete the record?',
  removeSuccess: 'Delete Success',
  all: 'all',
  male: 'male',
  female: 'female',
  unknown: 'unknown',
  notFoundPdf: 'not found PDF',
  previewPDF: 'Preview PDF',
  goToList: 'goto list page',
  approval: 'Are you sure you want to pass the audit?',
  disapproval: 'Are you sure you want to fail the audit?',
  approvalStatus: 'Pass',
  disapprovalStatus: 'Failed',
  needApprovalStatus: 'Pending',
  approvalStatusName: 'approval status',
  operatorSuccess: 'operation success',
  operatorError: 'operation failed',
  placeholder: 'please input',
  placeholderChecked: 'please select',
  createTime: 'create time',
  updateTime: 'modify time',
  sendsuccess: 'Send Success',
  senderror: 'Send failure',
  review: 'review',
  noreview: 'review failed',
  needreview: 'pending review',
  approvehistory: 'audit trail',
  actionpeople: 'Operator',
  actionstate: 'Operating state',
  actiondate: 'Operating time',
  serialnumber: 'serial number',
  enddate: 'Contract end date',
  reasonfail: 'Failure reason',
  totalnum: 'Total number:',
  succnum: 'Number of successes:',
  errornum: 'Number of failures:',
};

export default {
  button,
  baseInfo,
  datetimeFormat: {
    all: 'D/M/YYYY HH:mm:ss',
    date: 'D/M/YYYY',
    time: 'HH:mm',
  },
  system,
  httpCode,
  applicationContractor,
  applicationStaff,
  applicationVehicle,
  applicationCommon,
};
